﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Stock
{
    [Comment("锁定批次库存表")]
    [Table("t_lockstock")]
    public class LockStock : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public LockStock(Guid keyId)

        {
            this.Id = keyId;
        }

        public LockStock()
        {

        }

        [Comment("批次库存ID")]
        public Guid StockId { get; set; }
    
        [Comment("锁住单据编号")]
        public string VoucherCode { get; set; }

        [Comment("科室Id")]
        public Guid DeptId { get; set; }

        [Comment("产品编码")]
        public string ProductCode { get; set; }

        [Comment("锁定数量")]
        [Column(TypeName = "decimal(18,4)")]
        public decimal LockCount { get; set; }
        public bool IsDeleted { get; set; } = false;

        public Guid? TenantId { get; set; }
    }
}
